import com.tgl.PingApplication
import spock.lang.Specification

class PingApplicationTest extends Specification{

    // 测试启动类
    def "test pingApplication"() {
        // given块
        given: "initial conditions"
        // 设置前置条件或数据
        PingApplication pingApplication = new PingApplication();
        when: "action is performed"
        pingApplication.main();
        then:
        noExceptionThrown()
    }
}
